import http from '@/utils/request.js';

// 我的电梯和专项保养
// 专项模板
export const specialTemplate = (data) => {
	// return http.get('/repair/maintain/plan/content/special/type',data);
	return http.request({
		url: '/repair/maintain/plan/content/special/type',
		method: 'get',
		data
	});
};

// 选择专项保养具体模板
export const myElevatorDecision = (data) => {
	// return http.post('/repair/maintain/plan/content/special/type/decision', data, true);
	return http.request({
		url: '/repair/maintain/plan/content/special/type/decision',
		method: 'post',
		data,
		textJson: true,
	});
};

// *********** 楼栋列表 ***********

// 楼栋列表
export const getElevatorListLou = (data) => {
	// return http.get('/repair/buildingfloorelevator/listOfbuildingId', data);
	return http.request({
		url: '/repair/buildingfloorelevator/listOfbuildingId',
		method: 'get',
		data
	});
};
// 添加楼栋
export const elevatorAddUpdata = (data) => {
	// return http.post('/repair/buildingfloorelevator/save/or/update', data, true);
	return http.request({
		url: '/repair/buildingfloorelevator/save/or/update',
		method: 'post',
		data,
		textJson: true,
	});
};
// 楼栋模板
export const getElevatorTemplistLou = (data) => {
	// return http.get('/repair/buildingfloorelevator/building/elevator/template/list', data);
	return http.request({
		url: '/repair/buildingfloorelevator/building/elevator/template/list',
		method: 'get',
		data
	});
};
// 楼栋详情
export const getElevatorTempDetail = (data) => {
	// return http.get('/repair/buildingfloorelevator/detail', data);
	return http.request({
		url: '/repair/buildingfloorelevator/detail',
		method: 'get',
		data
	});
};
